/*
* aboutdlg.cpp - This file is the part of the wp-notifier.(code name "luan luan")
* Copyright (C) 2010 Dean Lee <deanlee3@gmail.com> <http://www.deanlee.cn/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
* 
* Acknowledgements:
*   <> Many thanks to all of you, who have encouraged me to update my articles
*     and code, and who sent in bug reports and fixes.
* 
*/
#include "aboutdlg.h"
#include "common.h"

AboutDlg* AboutDlg::s_instance = NULL;

void AboutDlg::showDlg()
{
	if (!s_instance) {
		s_instance = new AboutDlg();
	}
	bringToFront(s_instance);
}

AboutDlg::AboutDlg(QWidget* parent) : QDialog(parent)
{
	setAttribute(Qt::WA_DeleteOnClose);
	ui_.setupUi(this);
	ui_.lb_version->setText(tr("Wordpress comments notifier %1").arg(PROG_VERSION));
}

AboutDlg::~AboutDlg()
{
	s_instance = NULL;
}